//
//  SEGShowPhotoView.h
//  Uhomebk
//
//  Created by wangmingmin on 2017/10/25.
//  Copyright © 2017年 com.segi. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 SEGShowPhotoViewDelegate
 */
@protocol SEGShowPhotoViewDelegate <NSObject>
@optional
-(void)didDeletePhotoImage:(NSMutableArray *)imageArray;
-(void)SEGShowPhotoViewDelegatePopView;
@end



@interface SEGShowPhotoView : RootViewController
/**
 * 初始化图片浏览器，单击界面返回，使用present推出控制器
 */
-(instancetype)initWithImageUrls:(NSArray *)imageUrls writable:(NSString *)writable;
-(instancetype)initWithImageUrls:(NSArray *)imageUrls writable:(NSString *)writable andFirstIndex:(NSInteger)index;
-(instancetype)initWithImages:(NSArray<UIImage *> *)imageArr;//已经有图片的情况，不需要url来访问，一般用于本地，不能删除，只能查看
-(instancetype)initWithImages:(NSArray<UIImage *> *)imageArr withCurrentIndex:(NSInteger)index writable:(NSString *)writable;
@property(nonatomic, weak) id<SEGShowPhotoViewDelegate> delegate;

@end
